package com.shen.my_blog.service;

import com.shen.my_blog.dao.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shen.my_blog.vo.Result;
import com.shen.my_blog.vo.UserVo;

/**
 *
 */
public interface SysUserService extends IService<SysUser> {
    UserVo findUserVoById(Long id);


    SysUser selectById (Long id);


    SysUser findUser(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result getUserInfoByToken(String token);


    /**
     * 根据账户查找用户
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);

    /**
     * 保存用户
     * @param sysUser
     */

}
